import 'package:boss/ui/page/commodity/categories/page/plusCommodityMode/page/plusCommodityByFormField/page/tasteSetting/page/plusTaste/provider/taste_provider.dart';
import 'package:boss/ui/widget/button/fixed_bottom_btn.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

class TasteFooter extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return FixedBottomBtn(
      title: '保 存',
      onTap: () {
        var tasteProvider = Provider.of<TasteProvider>(context, listen: false,);
        var flag = tasteProvider.check();
        if (flag) {

          Navigator.pop(context, tasteProvider.transferLabel());
        }
      },
    );
  }
}
